const { $fn, $wx, img, $http } = getApp()
Page({
    data: {
        img,
        pageCurrent:1,
        data:[],
    },
    model:{},
    onLoad: function (options) {
        this.paging()
    },
    onPullDownRefresh() { $fn.pullRefresh.call(this) },
    onReachBottom(){ this.paging() },
    paging(){
        $http.paging(this,'bill.myBillList')
    },
    // 搜索
    onShowPop(){
        this.setData({ show:true })
    },
    onStart(e){
        this.setData({ start:e.detail.value })
    },
    onEnd(e){
        this.setData({ end:e.detail.value })
    },
    onSearch(e){
        this.setData({ show:false, loadingComplete:false })
        this.model = {...e.detail.value, pageCurrent:1}
        this.paging()
    },
})